
<h1>对账参考数据</h1>


<table>
    <th colspan="6">831期初</th>
    <tr>
        <td>产品</td>
        <td>预收数量</td>
        <td>预收金额</td>
        <td>欠款数量</td></td>
        <td>欠款金额</td>
        <td>统计时间</td>
    </tr>
    {% for i in init_831 %} 
    <tr>
        <td>{{ i.product_name }}</td>
        <td>{{ i.num_ending }}</td>
        <td>{{ i.amount_ending }}</td>
        <td>{{ i.debts_num_ending }}</td>
        <td>{{ i.debts_amount_ending }}</td>
        <td>{{ i.ending_time }}</td>
    </tr>
    {% endfor %}
</table>
<br/>
<table>
    <th colspan="6">核销数据</th>
    <tr>
        <td>编号</td>
        <td>金额</td>
        <td>单价</td>
        <td>数量</td>
        <td>时间</td>
    </tr>
    {% for i in write_off_product %} 
    <tr>
        <td>{{ i.source_code }}</td>
        <td>{{ i.amount }}</td>
        <td>{{ i.write_off_count }}</td>
        <td>{{ i.discount_price }}</td>
        <td>{{ i.create_time }}</td>
    </tr>
    {% endfor %}
</table>
<br/>
<table>
    <th colspan="6">回款认款</th>
   
    <tr>
        <td>编号</td>
        <td>金额</td>
        <td>产品名称</td>
        <td>分解金额</td>
        <td>时间</td>
    </tr>
    {% for i in returned %} 
    <tr>
        <td>{{ i.receivable_code }}</td>
        <td>{{ i.recognize_amount }}</td>
        <td>{{ i.material_long_name }}</td>
        <td>{{ i.total_amount }}</td>
        <td>{{ i.apply_time }}</td>
    </tr>
    {% endfor %}
</table>
<br/>
<table>
    <th colspan="6">发货订单</th>
   
    <tr>
        <td>代理商名称/商务名称</td>
        <td>类型</td>
        <td>编号</td>
        <td>SAP</td>
        <td>状态</td>
        <td>审核时间</td>
        <td>产品名称</td>
        <td>订单数量</td>
        <td>折后金额</td>
        <td>发货数量</td>
    </tr>
    {% for i in order_delivery %} 
    <tr>
        <td>{{ i.agent_name }}</td>
        <td>{{ i.order_type }}</td>
        <td>{{ i.order_code }}</td>
        <td>{{ i.sap_order_no }}</td>
        <td>{{ i.order_status }}</td>
        <td>{{ i.examine_pass_time }}</td>
        <td>{{ i.material_long_name }}</td>
        <td>{{ i.material_count }}</td>
        <td>{{ i.actual_price }}</td>
        <td>{{ i.deliver_quantity }}</td>
    </tr>
    {% endfor %}
</table>
<br/>
<table>
    <th colspan="6">930前开票</th>
    <tr>
        <td>代理商名称/商务名称</td>
        <td>编号</td>
        <td>SAP</td>
        <td>产品名称</td>
        <td>开票时间</td>
        <td>开票金额</td>
    </tr>
    {% for i in invoice_return_item %} 
    <tr>
        <td>{{ i.agent_name }}</td>
        <td>{{ i.order_code }}</td>
        <td>{{ i.sap_order_no }}</td>
        <td>{{ i.material_long_name }}</td>
        <td>{{ i.invoice_date }}</td>
        <td>{{ i.tax_included_amount }}</td>
    </tr>
    {% endfor %}
</table>
<!-- <a href="/assets/README.md">下载</a> -->